message(STATUS "NOTES: Compile the library!")

set(SRC
        blas.h
        blas.cpp)

#-----------------------------------------#
# 生成静态库:
#-----------------------------------------#
add_library(${LIB_NAME} STATIC ${SRC})
if(PARALLEL_ENABLE)
    # 并行版编译编译选项
    target_compile_options(${LIB_NAME} PRIVATE /openmp)
    if (${CMAKE_BUILD_TYPE} STREQUAL Debug)
        message(STATUS "Parallel debug")
        target_link_libraries(${LIB_NAME}
                PUBLIC debug ${MKL_LIB} OpenMP::OpenMP_CXX ) # PRIVATE PUBLIC
    else ()
        message(STATUS "Parallel release")
        target_link_libraries(${LIB_NAME}
                PUBLIC optimized ${MKL_LIB} OpenMP::OpenMP_CXX )
    endif ()
else()
    message(STATUS "Sequential")
    target_link_libraries(${LIB_NAME}
            PUBLIC ${MKL_LIB}
            )
endif()
